package com.cn.xiaonuo.common.utils.payutils;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;


/**
 * @BelongsProject: slb-reports-java
 * @Author: likui
 * @CreateTime: 2022-11-03  14:58
 * @Description: TODO
 */
@Component
public class GnetePayUtil {

    public static String APP_ID;
    public static String PRIVATE_KEY;
    public static String PRIVATE_KEY_PASS;
    public static String PUBULIC_KEY;
    public static String NOTIFY_BUY_URL;
    public static String CONMON_NOTIFY_URL;
    public static String RECHARGE_NOTIFY_URL;
    //网关
    public static String GNETE_URL;
    //网关
//    public static final String GNETE_URL = "https://testapi.gnete.com:9083/routejson";

    @Value("${gnetePPay.APP_ID}")
    private String app_id;

    @Value("${gnetePPay.notifyUrlBuy}")
    private String notifyUrlBuy;

    @Value("${gnetePPay.notifyUrl}")
    private String notifyUrl;

    @Value("${gnetePPay.notifyUrlTC}")
    private String notifyUrlTC;

    @Value("${gnetePPay.privateKey}")
    private String privateKey;

    @Value("${gnetePPay.privateKeyPass}")
    private String privateKeyPass;

    @Value("${gnetePPay.publicKey}")
    private String publicKey;

    @Value("${gnetePPay.gneteUrl}")
    private String gneteUrl;

    public static GnetePayUtil aliPayUtilNew;
    @PostConstruct
    public void initValue() {
        aliPayUtilNew=this;
        APP_ID=app_id;
        NOTIFY_BUY_URL=notifyUrlBuy;
        CONMON_NOTIFY_URL=notifyUrlTC;
        RECHARGE_NOTIFY_URL=notifyUrl;
        GNETE_URL=gneteUrl;
        PRIVATE_KEY=privateKey;
        PRIVATE_KEY_PASS=privateKeyPass;
        PUBULIC_KEY=publicKey;

    }
}
